/*
 * Copyright 2019 ThoughtWorks, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/**
 * Status Visualizations.css
 *
 * This file contains things like status colors (pass, fail, building, etc) and how shared ways to show these pieces
**/


/**
 * TABLE OF CONTENTS
 *
 * =STATUS_TREATMENTS
 * ==TABLE_OVERRIDES
 * =COLOR_CODE
**/


/**
 * =STATUS_TREATMENTS
**/
.Passed {
  background-image:    image_url('g9/backgrounds/bg_status_gradient.png');
  background-repeat:   repeat-x;
  background-color:    #78C42D;
  background-position: bottom left;
}

.Failed {
  background-image:    image_url('g9/backgrounds/bg_status_gradient.png');
  background-repeat:   repeat-x;
  background-color:    #FA2D2D;
  background-position: bottom left;
}

.Failing {
  background: #f77e7f image_url('failing.gif') repeat-x;
}

.stage_bar.Failing {
  background: #f77e7f image_url('failing.gif') repeat-x;
}

.vsm-entity {
  .stage_bar.Failing,
  .stage_bar.Building{
    background-size: auto;
  }
}

.Unknown{
  background: image_url('g9/backgrounds/bg_state_unknown.png') no-repeat right;
}

.Building,
.Active{
  background-image: image_url('building.png');
  background-repeat: repeat-x;
  background-color: #FFC11B;
  background-position: bottom left;
}

/**
 * ==TABLE OVERRIDES
**/
tr.Cancelled td {
  text-align: left;
}


/**
 * =COLOR_CODE
 */
.color_code {
    width: 1em;
    height: 1em;
    margin-right: .5em;
    float: left;
    overflow: hidden;
}
.color_code_small {
    float:left;
    height:12px;
    width:12px;
    margin-right:5px;
    margin-top:0;
    overflow:hidden;
}
*+html .color_code_small{
    width: 1em;
    height: 1em;
}
*+html .color_code_small img{
    position: relative;
    top: -2px;
    left: 0
}
.color_code_stage {
    width: 36px;
    height: 12px;
    margin-right: 5px;
    float: left;
    overflow: visible;
}
